import baseConfig from '../../build/config';

const currentEnv = baseConfig.currentEnv;

const currentConfig = baseConfig[currentEnv];
const config = {
  serverProxy: '/serverProxy',
  env: currentEnv,
  serverPath: currentConfig.serverPath,
  publicPath: currentConfig.publicPath,
  // tradeInvoicePath: '/serverProxy' + currentConfig.tradeInvoicePath,
  tradeInvoicePath: currentConfig.tradeInvoicePath, // 配置前
  domain: currentConfig.domain,
  authServicePath: currentConfig.authServicePath,
  loginPath: currentConfig.loginPath
};
if (config.env !== 'dev') {
  config.serverProxy = currentConfig.serverPath;
}
export default config;
